package com.ywjt.platformbusiness.widget;

import android.view.View;
import android.widget.ImageView;

import com.ywjt.platformbusiness.R;
import com.ywjt.platformbusiness.base.BaseBottomDialog;


public class ReasonBottomDialog extends BaseBottomDialog {

    private ImageView ivClose;

    private ClickListenerInterface clickListenerInterface;

    public interface ClickListenerInterface {
        void takePhoto();

        void selectFromAlbum();
    }

    public ReasonBottomDialog() {
    }

    @Override
    public int getLayoutRes() {
        return R.layout.bottom_returnmoney_reason;
    }

    @Override
    public void bindView(View v) {

        ivClose = v.findViewById(R.id.ivClose);
        ivClose.setOnClickListener(new clickListener());
    }

    public void setClicklistener(ClickListenerInterface clickListener) {
        clickListenerInterface = clickListener;
    }

    private class clickListener implements View.OnClickListener {

        @Override
        public void onClick(View v) {
            switch (v.getId()) {
                case R.id.ivClose:
                    dismiss();
                    break;
                default:
                    break;
            }
        }
    }
}
